<html>
 <head>
	<title>[var.TITLE]</title>
	<link href="[var.ROOT_CSS_DIR]/main.css" rel="STYLESHEET" type="text/css" charset="iso-8859-1" hreflang="en-us">
	<link href="[var.ROOT_CSS_DIR]/facet/style.css" rel="STYLESHEET" type="text/css" charset="iso-8859-1" hreflang="en-us">	
	<script type="text/javascript" src="[var.ROOT_DIR]js/common.js"></script>
	<script type="text/javascript" src="[var.ROOT_DIR]js/doiMenuDOM.js"></script>
	<script type="text/javascript" src="[var.ROOT_DIR]js/functions.js"></script>
	<script type="text/javascript" src="[var.ROOT_DIR]js/jsmenu.php"></script>
	<script type="text/javascript" src="[var.ROOT_DIR]js/jsmenu.cfg"></script>
	<script type="text/javascript" src="[var.ROOT_DIR]js/jsformgrid.php?session=[var.SessionVar]"></script>
	<script type="text/javascript" src="[var.ROOT_DIR]js/jsmasks.js"></script>
	<script type="text/javascript" src="[var.ROOT_DIR]js/jsinit.php?session=[var.SessionVar]"></script>	
 </head>
 <body bgcolor="FFFFFF" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
	<table border="0" cellspacing="0" cellpadding="0" width="100%" align="[var.POSITION]">
		<tr>
			<td>[tbs_include.onshow;file=[var.HTMLHeader];getob;]</td>
		</tr>
		<tr>
			<td>
			<table border="0" cellspacing="0" cellpadding="0" width="100%">
				<tr>
					<td class="mainmenu2"><img src="images/spacer.gif" height="1" width="1"></td>
				</tr>				
				<tr>
					<td background="[var.ROOT_IMG_DIR]/back-menu.gif">
					<table border="0" cellspacing="0" cellpadding="0" width="100%">
						<tr>
							<td>
      			  			<script language="JavaScript" type="text/JavaScript">menu.Build();</script>
						  </td>
						  <td class="head-login">Login as [var.USERPROFILE_NAME]</td>
						</tr>
					  </table>
					</td>
				</tr>
				
				<tr>
					<td class="mainmenu2"><img src="images/spacer.gif" height="1" width="1"></td>
				</tr>				
			</table>
			</td>
		</tr>
		<tr height="100%">
			<td>
			<table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%">
				<tr valign="top">
					<td width="100%">
						<table border="0" cellspacing="0" cellpadding="0" width="100%">			
							<tr>
								<td class="head-path"></td>
								<td class="corner-date">[var.CORNER_DATE]</td>
							</tr>
						</table>
						<table border="0" cellspacing="0" cellpadding="5" width="100%">
							<tr>
								<td class="FacetHeaderContent" >.:[var.SubHeaderTitle]:.</td>
							</tr>
						</table>
						
						<table border="0" cellspacing="0" cellpadding="5" width="100%">
							<tr>
								<td class="contentTitle">
								Menu
								</td>
							</tr>
							<tr>
								<td class="content2">
								<table cellspacing="2" cellpadding="0">
								 <tr>
								   <td>
								    <input type="button" name="Action" value="<<Back" class="button" onClick="self.location.replace('[sys.script_name]')">
								   </td>
								   <td>
								     <input type="button" name="Action" value="Done" class="button" onClick="self.location.replace('[var.SERVER_URL]')">
								   </td>
								 </tr>
								</table>
								</td>
							</tr>
							<tr>
								<td class="content2">
						<!-- FORM SECTION -->
						<table border="0" cellspacing="0" cellpadding="0">
						<form method="post" action="[var.FormAction]" name="[var.HTMLFormName]" ONSUBMIT="if (this.submitted) return true; else return false;">						
							  <tr>
							    <td class="fieldCaption" align="right">Vendor Code</td>
							    <td class="fieldCaption">:</td>
							    <td class="fieldCaption"><input type="text" name="VendorCode" value="[blcv.CUCODE;noerr]" maxlength="255" size="10" class="input" readonly></td>
							  </tr>
							  <tr>
							    <td class="fieldCaption" align="right">Vendor Name</td>
							    <td class="fieldCaption">:</td>							    
							    <td class="fieldCaption">
							    <input type="text" name="VendorName" value="[blcv.CUNAME;noerr]" maxlength="255" size="25" class="input" readonly>
							    <input type="hidden" name="ktrasl" value="[var.KTRASL;noerr]">
							    </td>
							  </tr>
							  <tr>
							   <td class="fieldCaption"></td>
							   <td class="fieldCaption"></td>
							   <td align="right" class="fieldCaption">
							    </td>
							  </tr>

						 </table>
						 <!-- FORM SECTION -->						 
								</td>
							</tr>
						</table>
						<hr size="1" color="DFDFDF">														
						<div id="spanHeader" style="height: 25px; vertical-align: top; overflow-y: noscroll;">
						<table border="0" width="100%" cellpadding="3" cellspacing="1" class="FacetFormTABLE" align="left">
						<input type=hidden name="NewData" value="[var.NewDataStart]">
							<tr>
								<td nowrap class="FacetColumnTD" align="center" width="20">X</td>
								<td nowrap class="FacetColumnTD" align="center" width="25">No.</td>
								<td nowrap class="FacetColumnTD" align="center" width="80">ID NUM#</td>
								<td nowrap class="FacetColumnTD" align="center" width="80">DATE</td>
								<td nowrap class="FacetColumnTD" align="center" width="*">DESCRIPTION</td>
								<td nowrap class="FacetColumnTD" align="center" width="50">CURR</td>
								<td nowrap class="FacetColumnTD" align="center" width="100">AMOUNT</td>
                <td nowrap class="FacetColumnTD" align="center" width="100">RATE</td>
								<td nowrap class="FacetColumnTD" align="center" width="100">COA</td>
							</tr>
						</table>
						</div>
						<div id="spanDetail" style="height: 274px; vertical-align: top; overflow: auto;">						
						<table border="0" width="100%" cellpadding="3" cellspacing="1" class="FacetFormTABLE" align="left">
						    <tr id="[blg.#]" style="display:[blg._display;noerr]">
						    	<td nowrap class="FacetDataTD" align="right" width="20" align="center"><input type="checkbox" name="txtCheck[blg.#]" value="[blg.nobkt]" class="inputRadio"></td>
						    	<td nowrap class="FacetDataTD" align="right" width="25" align="center">[blg.#].</td>
							    <td nowrap class="FacetDataTD" width="80" align="center"><input type="text" name="nobkt[blg.#]" value="[blg.nobkt;block=tr;noerr]" maxlength="255" size="10" class="input" onkeyup="this.value=this.value.toUpperCase()" [tbs_check;if [blg.nobkt]!='';then 'readonly';else '']></td>
							    <td class="FacetDataTD" width="80" align="center"><input type="text" name="tglbkt[blg.#]" value="[blg.tglbkt;noerr;frm='dd/mm/yyyy']" maxlength="255" size="10" class="input">
							    <input type="hidden" name="debtur[blg.#]" value="[blg.debtur;noerr]" maxlength="255" size="15" class="input"><input type="hidden" name="debnam[blg.#]" value="[blg.debnam;noerr]" maxlength="255" size="15" class="input"></td>
							    <td class="FacetDataTD" width="*" align="center"><input type="text" name="uraian[blg.#]" value="[blg.uraian;noerr]" maxlength="255" size="22" class="input"></td>
							    <td class="FacetDataTD" width="50" align="center">
								<select name="curr[blg.#]" class="input">
								  <option value="">-</option>
                  <option value="[currblk.tucode]">[currblk.tucode;block=option]</option>
                  <option>[blg.curr;selected;noerr]</option>
								</select>																		    
							    </td>
							    <td class="FacetDataTD" width="100" align="center"><input type="text" name="jumlah[blg.#]" value="[blg.jumlah;noerr;frm='0,000.00']" maxlength="255" size="10" class="inputNumber"></td>
							    <td class="FacetDataTD" width="100" align="center"><input type="text" name="rate[blg.#]" value="[blg.rate;noerr;frm='0,000.00']" maxlength="255" size="10" class="inputNumber"></td>
                  <td class="FacetDataTD" width="100" align="center"><input type="text" name="skada[blg.#]" value="[blg.skada;noerr]" maxlength="255" size="10" class="input"></td>
							</tr>							
						</table>
						</div>
						<div id="spanButton" style="height: 35px; vertical-align: top; overflow-y: noscroll;">
						<table border="0" width="100%" cellpadding="3" cellspacing="1" class="FacetFormTABLE" align="left">
							<tr>								
							    <td align="right" class="FacetColumnTD" colspan="7">
							   	<table border="0" cellspacing="2" cellpadding="0">
							   		<tr>
							   			<td>[tbs_check;block=td;if [var.USER_CANINSERT]=1]
							   			<input name="FormAction" type="submit" value="Next Line" class="button" onclick="return AddFormGrid(this,'[var.HTMLFormName].nobkt')">
							   			</td>							   		
							   			<td>[tbs_check;block=td;if [var.USER_CANUPDATE]=1][tbs_check;block=td;if [var.USER_CANINSERT]=1]
							   			<input name="FormAction" type="submit" value="Save" class="button" ONCLICK="this.form.submitted = true; return true;">
							   			</td>
							   			<td>[tbs_check;block=td;if [var.USER_CANDELETE]=1]
							   			<input type="button" name="Action" value="Delete" class="button" onClick="if (confirm('Are you sure want to delete ?')) {[var.HTMLFormName].action='[sys.script_name]?FormAction=Delete&[var.PRIMARY_KEY]=[var.PRIMARY_VALUE]&PageMode=Form&form=[var.HTMLFormName]';[var.HTMLFormName].submit();}">
							   			</td>
							   			<td>
							   			<input name="FormAction" type="submit" value="Cancel" class="button">
							   			</td>
							   		</tr>
							   	</table>
							    </td>								
								</td>
							</tr>													
							</form>
						</table>
						</div>
					</td>
				</tr>
			</table>
			</td>
		</tr>
		<tr>
			<td>
			<br>
			<table border="0" cellspacing="0" cellpadding="0" width="100%">
				<tr>
					<td class="footer1"><img src="images/spacer.gif" height="1" width="1"></td>
				</tr>
				<!--tr>
					<td class="footer2">Prototype Test - Web Application</td>
				</tr-->
			</table>
			</td>
		</tr>		
 	</table>
 </body>
 <script>
 [var.InitFunction]
 </script>
</html>
